package com.ytc.content.controller;

import com.ytc.commons.model.vo.ResponseResult;
import com.ytc.content.service.CommonSmsMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommonSmsMsgController {

    @Autowired
    private CommonSmsMsgService commonSmsMsgService;

    //机构申请入职手机发送验证码
    @GetMapping("/common/smsMsg")
    public ResponseResult commonSmsMsg(String phone){
        commonSmsMsgService.sms(phone);
        return ResponseResult.okResult(true);
    }
}
